class CreatePortEntries < ActiveRecord::Migration
  def self.up
    create_table :port_entries do |t|
      t.column :machine_id, :integer, :length => 11
      t.column :port_number, :integer, :length => 11
      t.column :service, :string, :length => 50
      t.column :state, :string, :length => 20
      t.column :last_time_found, :datetime
    end
  end

  def self.down
    drop_table :port_entries
  end
end
